<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
	<title>商品详情</title>
	<link rel="stylesheet" href="/Shopping/Public/Css/admin.css"/>
</head>
<body>
	<div id="header">
		<div class="top">
			<ul>
				<li><a href="<?php echo U('Login/loginOut');?>">❤退出❤</a></li>
				<li style="">欢迎您!<?php echo ($_SESSION['admin']['username']); ?></li>
			</ul>
		</div>
		<div class="h_main">
			<span>购物商城后台管理系统</span>
		</div>
	</div>
	<div id="middle"></div>
	<div class="main mt">
		<div class="m_left fl">
			<ul>
				<a href="<?php echo U('Goods/index');?>">
					<li>
					<span class="left_ico"></span>
					<b>商品管理</b>
					<span class="right_ico"></span>
					</li>
				</a>
				<a href="<?php echo U('Cate/index');?>">
					<li>
					<span class="left_ico"></span>
					<b>分类管理</b>
					<span class="right_ico"></span>
					</li>
				</a>
				<a href="<?php echo U('User/index');?>">
					<li>
					<span class="left_ico"></span>
					<b>用户管理</b>
					<span class="right_ico"></span>
					</li>
				</a>
				<a href="<?php echo U('Order/index');?>">
					<li>
					<span class="left_ico"></span>
					<b>订单管理</b>
					<span class="right_ico"></span>
					</li>
				</a>
				<a href="<?php echo U('Comments/index');?>">
					<li>
					<span class="left_ico"></span>
					<b>评论管理</b>
					<span class="right_ico"></span>
					</li>
				</a>
				<a href="<?php echo U('Adver/index');?>">
					<li>
					<span class="left_ico"></span>
					<b>广告管理</b>
					<span class="right_ico"></span>
					</li>
				</a>
			</ul>
		</div>
	<div class="m_right fr">
		<div class="mright_m">
		
	<div class="agoods_nav">
		<span>商品详情</span>
		<a href="<?php echo U('Goods/index',['p'=>$p]);?>"><button style="width:100px;height:40px;border:none;background:#6CCCCB;float:right;margin-right:40px;margin-top:5px;border-radius:10px;color:#2C6787;">返回</button></a>
	</div>
	
	
			<table border="0" cellspacing="0" cellpadding="5" style="margin-left:100px;">
				<tr>
					<td width="100">编号:</td>
					<td><?php echo ($list['gid']); ?></td>
				</tr>
				<tr>
					<td>商品名称:</td>
					<td><?php echo ($list['gname']); ?></td>
				</tr>
				<tr>
					<td>图片:</td>
					<td><img src="/Shopping<?php echo ($list['giname']); ?>" alt="图片加载失败"></td>
				</tr>
				<tr>
					<td></td>
					<td>
					<?php if(is_array($imglist)): foreach($imglist as $key=>$value): ?><img src="/Shopping<?php echo ($value['name']); ?>" alt="图片加载失败"><?php endforeach; endif; ?>
					</td>
				</tr>
				<tr>
					<td width="100">添加时间:</td>
					<td><?php echo ($list['gtime']); ?></td>
				</tr>
				<tr>
					<td>描述:</td>
					<td><textarea cols="30" rows="5" readonly>
						<?php echo ($list['gd']); ?>
					</textarea></td>
				</tr>
				<tr>
					<td></td>
					<td><a href="<?php echo U('Goods/addimg',['id'=>$list['gid']]);?>"><button style="width:80px;height:40px;border:none;background:#6CCCCB;border-radius:10px;color:#2C6787;">添加图片</button></td>
				</tr>
			</table>

		</div>
	</div>
</div>
<div class="clear"></div>
<div id="middle"></div>
<div id="footer">
	<p>Copyright&copy; 2016年 京ICP备11011334号</p>
</div>

</body>
</html>